package larpplanner.database;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Inherited
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DBListRelation {
    String table();            // The name of the relation table
    String join_col();                    // The column name by which to join by both tables
    String other_col() default "";   // optionally, if column names are different, specify other field name
    String val_col();              // The column name of values related to the id
}
